package com.metal.gear.certification.entity.dto.permission;

import com.metal.gear.common.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode
@Schema(name ="权限添加实体")
public class SysPermissionAddDto {

    @Schema(name ="父id")
    private String parentId;

    @Schema(name ="菜单名称")
    private String name;

    @Schema(name ="菜单权限编码，例如：“sys:schedule:list,sys:schedule:info”,多个逗号隔开")
    private String perms;

    @Schema(name ="权限策略1显示2禁用")
    private String permsType;

    @Schema(name ="路径")
    private String url;

    @Schema(name ="菜单排序")
    private Double sortNo;

    @Dict(dicCode = "menu_type")
    @Schema(name ="类型（0：一级菜单；1：子菜单 ；2：按钮权限）")
    private Integer menuType;

    @Schema(name ="描述")
    private String description;


}
